function isMobile(){
    return /Mobile|Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Windows Phone/i.test(navigator.userAgent);
}
function parseJSON(data) {
    return window.JSON && window.JSON.parse ? window.JSON.parse(data) : (new Function("return " + data))(); 
}
function stringfyJSON(data){
    return window.JSON && window.JSON.stringify ? window.JSON.stringify(data) : (new Function("return " + data))();
}